package shape;

import java.awt.Graphics;

import net.jcip.annotations.Immutable;

@Immutable
public class Circle implements Shape {
	
	private final int x;
	private final int y;
	private final int radius;
	
	public Circle() {
		x = 200;
		y = 200;
		radius = 80;
	}
	
	public Circle(int x, int y, int radius) {
		this.x = x;
		this.y = y;
		this.radius = radius;
	}

	public void draw() {
		System.out.println("Circle");
	}

	@Override
	public void paintShape(Graphics g) {
		g.drawOval(x, y, radius, radius);
	}
	
	@Override
	public void fillShape(Graphics g) {
		g.fillOval(x, y, radius, radius);
	}

	@Override
	public int getX() {
		return x;
	}

	@Override
	public int getY() {
		return y;
	}

	@Override
	public int getSize() {
		return radius;
	}
}
